<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<?php include("../../MerchandiseBay/conn.php"); ?>
<?
$category=$_REQUEST['category'];
$id=$_REQUEST['id'];
$oldcategory=$_REQUEST['oldcategory'];



$sql="update category set category='$category' where category='$oldcategory'";
$qry=mysql_query($sql,$conn);

$sql="update kind set category='$category' where category='$oldcategory'";
$qry=mysql_query($sql,$conn);

$sql="update merchandise set category='$category' where category='$oldcategory'";
$qry=mysql_query($sql,$conn);

//semua table akan berubah data untuk data category, apabila data category dalam table category berubah


?>

<script language=javascript>
window.alert("Update successfull");
window.location.assign("listCategory.php");
</script>
</head>

<body>

</body>

</html>
